//
//  ViewController.m
//  projA
//
//  Created by neo on 17/1/10.
//  Copyright © 2017年 solar. All rights reserved.
//

#import "AViewController.h"
#import <Masonry.h>

@interface AViewController ()

@end

@implementation AViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    self.view.backgroundColor = [UIColor greenColor];
    UILabel *titleLabel = [UILabel new];
//    titleLabel.text = @"AViewController";
    titleLabel.text = [UIDevice currentDevice].name;
    titleLabel.textColor = [UIColor blackColor];
    [self.view addSubview:titleLabel];
    [titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.center.mas_equalTo(self.view);
    }];
    
    UIImageView *imageView = [UIImageView new];
    imageView.image = [UIImage imageNamed:@"v_personal"];
    [self.view addSubview:imageView];
    [imageView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.size.mas_equalTo(CGSizeMake(20, 20));
        make.centerX.mas_equalTo(self.view);
        make.bottom.mas_equalTo(titleLabel.mas_top).offset(-20);
    }];
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
